package com.zc58s.springbootjacksondemo.controller;

import com.zc58s.springbootjacksondemo.beans.PcResult;
import com.zc58s.springbootjacksondemo.beans.Pc_JypEbsDto;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;

/**
 * @author : fujc-dev@qq.com
 */

@RestController
public class TestController {

    @RequestMapping(value = "/api/jypflow/getflowlist", method = RequestMethod.GET)
    public PcResult getFlowList() {
        List<Pc_JypEbsDto> list =new ArrayList<>();
        Pc_JypEbsDto dto = new Pc_JypEbsDto();
        dto.setId(UUID.randomUUID().toString());
        dto.setCreatetime(new Date());
        dto.setDeletetime(new Date());
        dto.setUpdatetime(new Date());
        list.add(dto);
        return new PcResult(list);
    }

}
